package com.example.bootadmin.reqModel;

public class UserPageModel  {
    private String userName;
    /**
     * 页码
     */
    private  Long current;
    /**
     * 当页条数
     */
    private Long size;

    private Long index;

    public UserPageModel(String userName, Long current, Long size) {
        this.userName = userName;
        this.current = current;
        this.size = size;
        this.index=(current-1)*size;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getCurrent() {
        return current;
    }

    public void setCurrent(Long current) {
        this.current = current;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getIndex() {
        return index;
    }

    public void setIndex(Long index) {
        this.index = index;
    }
}
